﻿<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%String path = request.getContextPath(); %> 
<!DOCTYPE html>
<html>
<head>
<title>学院公告详情</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<link href="<%=path%>/resources/css/pages/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path%>/resources/script/js/jquery-1.8.0.min.js" ></script>
<script src="<%=path%>/resources/script/js/vue.js"></script>
<script type="text/javascript" src="<%=path%>/resources/script/js/js.js" ></script>
</head>
<body>
<div id="contentBody">
<div class="top">
  <div class="top-ct">
    <h3 class="logo"></h3> 
    <span id='span'>
       <a href="<%=path%>/pages/login" id='plogin'><span >您好，请登录！</span></a>
       <a href="<%=path%>/pages/userInfo?userid=${loginUser.id }" id='pshow'><span>${loginUser.nickName}（${loginUser.account }）</span></a>
    </span>
   <p><a href="<%=path%>/index" class="select">首页</a><a href="<%=path%>/pages/mycourse?userid=">我的课程</a>
	<a href="<%=path%>/pages/learnhistory?userid=${loginUser.id}">学习历史</a><a href="javascript:void(0);">我的技能</a>
</p> 
    </div>
</div>

<div id="main">
<div class="position"><a href="<%=path%>/index" class="syx">首页</a> > <a href="javascript:void(0);">个人中心</a> </div>
<div class="ny-left">
 <div class="m-info">
  <ul>
    <li ><a href="<%=path%>/pages/userInfo?userid=${loginUser.id}" id="zl">个人资料</a></li>
    <li ><a href="<%=path%>/pages/chageMyPwd?userid=${loginUser.id}" id="mm">密码修改</a></li>
    <li ><a href="<%=path%>/pages/myDownload?subjectId=" onmousedown="z()" id="xz" >我的下载</a> 
      <a href="javascript:void(0);" onmousedown="z()" id="zk"><img src="<%=path%>/resources/images/pages/images/zk.jpg"></a> 
	  <a href="javascript:void(0);" onmousedown="s()" id="sq"><img src="<%=path%>/resources/images/pages/images/sq.jpg"></a> 
    </li>
    <div id="wdxz">
      <span>
         <a href="<%=path%>/pages/myDownload?subjectId={{item.subjectId}}" v-for="item in downCourseLis"> {{item.subjectName}}</a>
      </span>
    
    </div>
    <li class="select"><a href="javascript:void(0);" id="wm">关于我们</a></li>
  
  </ul>
</div>
</div>
<div class="m-right">
 <div class="about">
  
 <p> 文本介绍本软件的开发目的，开发用途，等等之类的简介,客服电话啊，投诉电话啊，微信号等等的资讯</p>
 
 </div>
 
 
 
 </div>


</div>

<div class="clear"></div>

<div class="foot">
<div class="foot-top"></div>
<div class="foot-ct"><p>Copyright © 2016 业主单位：福建工程学院，建设单位：福州森泽信息科技有限公司 技术服务热线：87862229
   <a href="#"><img src="<%=path%>/resources/images/pages/images/cnzz.jpg"></a></p></div>

</div>
</div>
<script type="text/javascript"  language="JavaScript">
$(function(){
	var myName='${loginUser.account}';
	if(myName==""||myName==undefined)
	{
		document.getElementById('plogin').setAttribute("style", "display:inline");
		document.getElementById('pshow').setAttribute("style", "display:none");
	}
	else{
		document.getElementById('plogin').setAttribute("style", "display:none");
		document.getElementById('pshow').setAttribute("style", "display:inline");
	}
	
	var vmMain = new Vue({
        el: '#contentBody',
        data: {
        	downCourseLis: [],
        }
    });
	$.ajax({
        type: "post",
        url: "findMyDownLoadSubject",
        dataType: "json",
        data: {},
        success: function (result) {
        	if(result){
        		vmMain.downCourseLis=result;
        	}
        	else 
        		vmMain.downCourseLis=[];
        		
        },
        error: function () {
            alert("data request errror!");
            return false;
        }
     });
});
</script>
</body>
</html>
